import Vue from 'vue'
import '@/utils/vue-ls' // vue-ls 本地存储
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/directives'

import './utils/util'
import './assets/filter'
import './plugin/vant' //引入vant
import './plugin/element' //引入element
import './utils/rem.js'
// 当前属于哪个环境
import VConsole from 'vconsole'
new VConsole()
// if (process.env.NODE_ENV === 'development') new VConsole()

import api from 'h5/api/index'

Vue.prototype.$api = api

import Mixin from './assets/mixin'

Vue.mixin(Mixin) //注册全局Mixin
import clipper from './utils/clipper'

Vue.use(clipper)

Vue.config.productionTip = false

import ScButton from 'h5/components/smartCampus/scButton'
import ScTitle from 'h5/components/smartCampus/scTitle'

Vue.component('ScButton', ScButton)
Vue.component('ScTitle', ScTitle)
window.$app = new Vue({
    store,
    router,
    render: (h) => h(App),
}).$mount('#app')
